//
//  ViewController.m
//  MD5加密
//
//  Created by 刘银龙 on 2017/3/22.
//  Copyright © 2017年 Ditian. All rights reserved.
//

#import "ViewController.h"
#import "NSString+MD5.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initData];
//    NSString *string=@"MD5加密方法";
//    NSLog(@"MD5==%@",[string stringToMD5:string]);
//    
    
    //    NSLog(@"MD5==%@",[string stringToMD5:string]);

}

-(void)initData{
//    NSString *string=@"111111";
//    NSString *string1=[string stringToMD5:string];
//    NSLog(@"string1==%@",string1);
//    NSString *string2=[string stringToMD5:string1];
//    NSLog(@"string2==%@",string2);
//    NSString *string3=[string stringToMD5:string2];
//    NSLog(@"string3==%@",string3);
    
    
    
    NSString *string6=@"111111";
    NSString *string1=[string6 stringToMD5:string6];
    string1=[string1 uppercaseString];
    NSLog(@"string1==%@",string1);
    NSString *string2=[string6 stringToMD5:string1];
    NSLog(@"string2==%@",string2);
    string2=[string2 uppercaseString];
    NSString *string3=[string6 stringToMD5:string2];
    string3=[string3 uppercaseString];
    NSLog(@"string3==%@",string3);
    
    
    
    //    NSString *string=@"wwy071011";
    //    NSString *stringSC=[string stringThreeUppercaseToMD5String:string];
    //    NSLog(@"stringSC==%@",stringSC);
    //    NSString *stringDX=[string uppercaseString];
    //    NSLog(@"stringDX==%@",stringDX);
    //
    //    NSString *stringFirst=[string stringToMD5:string];
    //    NSLog(@"stringFirst==%@",stringFirst);
    //    NSString *stringFirstDX=[stringFirst uppercaseString];
    //    NSLog(@"stringFirstDX==%@",stringFirstDX);
    //
    //    NSString *stringSecond=[stringFirstDX stringToMD5:stringFirstDX];
    //    NSLog(@"stringSecond==%@",stringSecond);
    //    NSString *stringSecondDX=[stringSecond uppercaseString];
    //    NSLog(@"stringSecondDX==%@",stringSecondDX);
    //    NSString *stringThird=[stringSecondDX stringToMD5:stringSecondDX];
    //    NSLog(@"stringThird==%@",stringThird);
    //    NSString *stringThirdDX=[stringThird uppercaseString];
    //    NSLog(@"stringThirdDX==%@",stringThirdDX);
    //
    


    
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
